<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div id="pop_up_content">
	<div class="pop_up_title images_13">
		<s:if test="null==id || ''.equal(id)">
			新建档案
		</s:if>
		<s:else>
			编辑档案
		</s:else>
		
	</div>
	<div class="pop_up_body">
		<form id="editForm" action="appointmentRegister/appointmentRegisterAction!editData.action">
		<input type="hidden" value="<s:property value='objctForm.id'/>" name="objctForm.id"/>
		<table border="0" cellpadding="0" cellspacing="0" width="750px">
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>姓名
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="name" name="objctForm.name" type="text" class="dialogy_input3 max_length:15 required" value='<s:property value="objctForm.name"/>'>
				</td>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>性别
					</div>
				</td>
				<td>
					<select id="sex" name="objctForm.sex">
						<s:if test="objctForm.sex=='男'">
							<option value="男" selected="selected">男</option>
						</s:if>
						<s:else>
							<option value="男">男</option>
						</s:else>
						<s:if test="objctForm.sex=='女'">
							<option value="女" selected="selected">女</option>
						</s:if>
						<s:else>
							<option value="女">女</option>
						</s:else>
					</select>
				</td>
			</tr>
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>出生日期
					</div>
				</td>
				<td>
					<input style="margin: 0px;" onclick="WdatePicker();" readonly="readonly" id="birthDay" name="objctForm.birthDay" type="text" class="dialogy_input3 max_length:15 required" value='<s:property value="objctForm.birthDay"/>'>
				</td>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>民族
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="people" name="objctForm.people" type="text" class="dialogy_input3 max_length:15 required" value='<s:property value="objctForm.people"/>'>
				</td>
			</tr>
			
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>学历
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="educational" name="objctForm.educational" type="text" class="dialogy_input3 max_length:15 required" value='<s:property value="objctForm.educational"/>'>
				</td>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>专业
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="speciality" name="objctForm.speciality" type="text" class="dialogy_input3 max_length:15 required" value='<s:property value="objctForm.speciality"/>'>
				</td>
			</tr>
			
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						毕业院校
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="finishSchool" name="objctForm.finishSchool" type="text" class="dialogy_input3 max_length:100" value='<s:property value="objctForm.finishSchool"/>'>
				</td>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						政治面貌
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="politicalStatus" name="objctForm.politicalStatus" type="text" class="dialogy_input3 max_length:50" value='<s:property value="objctForm.politicalStatus"/>'>
				</td>
			</tr>
			
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						婚姻状况
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="maritalStatus" name="objctForm.maritalStatus" type="text" class="dialogy_input3 max_length:50" value='<s:property value="objctForm.maritalStatus"/>'>
				</td>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						健康状况
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="health" name="objctForm.health" type="text" class="dialogy_input3 max_length:50" value='<s:property value="objctForm.health"/>'>
				</td>
			</tr>
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						血型
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="bloodGroups" name="objctForm.bloodGroups" type="text" class="dialogy_input3 max_length:10" value='<s:property value="objctForm.bloodGroups"/>'>
				</td>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>身份证号
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="identification" name="objctForm.identification" type="text" class="dialogy_input3 max_length:20 required" value='<s:property value="objctForm.identification"/>'>
				</td>
			</tr>
			
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>身份证地址
					</div>
				</td>
				<td colspan="3">
					<input style="margin: 0px;" id="address" name="objctForm.address" type="text" class="dialogy_input4 max_length:250 required" value='<s:property value="objctForm.address"/>'>
				</td>
			</tr>
			
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						户口类型
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="registered" name="objctForm.registered" type="text" class="dialogy_input3 max_length:20" value='<s:property value="objctForm.registered"/>'>
				</td>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						档案存放
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="dossier" name="objctForm.dossier" type="text" class="dialogy_input3 max_length:50" value='<s:property value="objctForm.dossier"/>'>
				</td>
				
			</tr>
			<tr>
				
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						现住址
					</div>
				</td>
				<td colspan="3">
					<input style="margin: 0px;" id="addressNow" name="objctForm.addressNow" type="text" class="dialogy_input4 max_length:250" value='<s:property value="objctForm.addressNow"/>'>
				</td>
				
			</tr>
			
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						社保
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="joke" name="objctForm.joke" type="text" class="dialogy_input3 max_length:50" value='<s:property value="objctForm.joke"/>'>
				</td>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>本人电话
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="handsetCode" name="objctForm.handsetCode" type="text" class="dialogy_input3 max_length:20 required" value='<s:property value="objctForm.handsetCode"/>'>
				</td>
			</tr>
			
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						家庭电话
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="familyTel" name="objctForm.familyTel" type="text" class="dialogy_input3 max_length:20" value='<s:property value="objctForm.familyTel"/>'>
				</td>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						紧急联系人
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="criticalPerson" name="objctForm.criticalPerson" type="text" class="dialogy_input3 max_length:20" value='<s:property value="objctForm.criticalPerson"/>'>
				</td>
			</tr>
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						紧急联系电话
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="criticalTel" name="objctForm.criticalTel" type="text" class="dialogy_input3 max_length:20" value='<s:property value="objctForm.criticalTel"/>'>
				</td>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						岗位
					</div>
				</td>
				<td>
					<input style="margin: 0px;" id="criticalTel" name="objctForm.criticalTel" type="text" class="dialogy_input3 max_length:20" value='<s:property value="objctForm.criticalTel"/>'>
				</td>
			</tr>
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						入职时间
					</div>
				</td>
				<td>
					<input style="margin: 0px;" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" id="criticalTel" name="objctForm.criticalTel" type="text" class="dialogy_input3 max_length:20" value='<s:property value="objctForm.criticalTel"/>'>
				</td>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						转正时间
					</div>
				</td>
				<td>
					<input style="margin: 0px;" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});" id="criticalTel" name="objctForm.criticalTel" type="text" class="dialogy_input3 max_length:20" value='<s:property value="objctForm.criticalTel"/>'>
				</td>
			</tr>
			<tr>
				<td></td>
				<td  class="dialogy_btn_td" colspan="2" align="center">
					<input id="editSubmit" type="button" value="确定" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
					<input type="button" value="取消" class="btn" onclick="hideDialog();" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
				</td>
				<td></td>
			</tr>
		</table>
		</form>
	</div>
</div>
<script>

	/* 表单提交 */
	i.formSubmit("editSubmit",	//绑定的按钮id
					  "editForm" ,   //提交的表单id
					  function(result){
						  	var jsonMsgObj=new JsonMsgObj(result);
							var  msg=jsonMsgObj.getMessage();
						    var codeId=jsonMsgObj.getCodeid();
							var isOk=jsonMsgObj.getIsok();
							if( isOk ){
							    aerouiAlert(msg);
								hideDialog();// 隐藏窗口
								loadContentLink('<%=basePath %>appointmentRegister/appointmentRegisterAction!appointmentRegisterList.action');
							}else{		// 如果编辑失败了
							  JsManageInfoHandleException( result , function(msg , codeId , isOk){
							  		hideDialog();// 隐藏窗口
							   });
						   }
						});

</script>